//-----------------------------------------------------------------------
// <copyright file="UserBase.cs" company="Pyramid Consulting">
//     Copyright (c) Pyramid Consulting. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace BirthdayReminder.Entities
{
	[Serializable]
	public class UserBase
	{
		
		#region Variable Declarations
		private int				userId = 0;
		private string				email = string.Empty;
		private int				cash = 0;
		private DateTime				creationDate = new DateTime(1900,1,1,0,0,0,0);
		private DateTime				lastLogin = new DateTime(1900,1,1,0,0,0,0);
		#endregion
		
		#region Constructors
		public UserBase() {}
		
		public UserBase (
			int userId,
			string email,
			int cash,
			DateTime creationDate,
			DateTime lastLogin)
		
		{
			this.userId = userId;
			this.email = email;
			this.cash = cash;
			this.creationDate = creationDate;
			this.lastLogin = lastLogin;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int UserId
		{
			get { return userId; }
			set { userId = value; }
		}
			
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Email
		{
			get { return email; }
			set { email = value; }
		}
			
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Cash
		{
			get { return cash; }
			set { cash = value; }
		}
			
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime CreationDate
		{
			get { return creationDate; }
			set { creationDate = value; }
		}
			
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime LastLogin
		{
			get { return lastLogin; }
			set { lastLogin = value; }
		}
			
		
		#endregion
	}//End Class
	
	public enum UserColumns
	{
		UserId,
		Email,
		Cash,
		CreationDate,
		LastLogin
	}//End enum
}